from flask_restful import Api

from shop.views.v1 import Goods, Detail, Feedback_api, Version_api, GoodsSearch, RecommendGoods, \
    Login, Browse, RushBug
from shop.views.v2 import GoodsV2, HotWordsV2, VersionApiV2, GoodImgDetailV2, TklGoodsV2, CollectionViewV2

api = Api()

# shop_api
api.add_resource(Goods, '/goods')
api.add_resource(Detail, '/detail')
api.add_resource(Feedback_api, "/feedback")
api.add_resource(Version_api, "/version")
api.add_resource(GoodsSearch, "/goods_search")
api.add_resource(RecommendGoods, "/recommendgoods")
api.add_resource(Login, "/login")
api.add_resource(Browse, '/browse')
api.add_resource(GoodsV2, "/v2/goods")
api.add_resource(HotWordsV2, "/v2/hotwords")
api.add_resource(VersionApiV2, "/v2/upgrade")
api.add_resource(GoodImgDetailV2, '/v2/goods_img_detail')
api.add_resource(TklGoodsV2, '/v2/tkl_goods')
api.add_resource(CollectionViewV2, '/v2/collection')
api.add_resource(RushBug, '/v1/rushbug')
